package com.hpeng.sys.model;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "SYS_SUB_MODULE")
public class SysSubModule {
	private SysSubModulePK id;
	private String subModuleName;
	private String seq;
	private String dispOnScr;

	public SysSubModule() {
	}

	public SysSubModule(SysSubModulePK id) {
		this.id = id;
	}

	public SysSubModule(String moduleId, String subModuleId,
			String subModuleName, String seq, String dispOnScr) {
		this.id = new SysSubModulePK(moduleId, subModuleId);
		this.subModuleName = subModuleName;
		this.seq = seq;
		this.dispOnScr = dispOnScr;
	}

	@EmbeddedId
	public SysSubModulePK getId() {
		return id;
	}

	public void setId(SysSubModulePK id) {
		this.id = id;
	}

	@Column(name = "SUB_MODULE_NAME")
	public String getSubModuleName() {
		return subModuleName;
	}

	public void setSubModuleName(String subModuleName) {
		this.subModuleName = subModuleName;
	}

	@Column(name = "SEQ")
	public String getSeq() {
		return seq;
	}

	public void setSeq(String seq) {
		this.seq = seq;
	}

	@Column(name = "DISP_ON_SCR")
	public String getDispOnScr() {
		return dispOnScr;
	}

	public void setDispOnScr(String dispOnScr) {
		this.dispOnScr = dispOnScr;
	}

}